package pl.model;

import org.apache.tapestry.form.IPropertySelectionModel;

public class DayModel implements IPropertySelectionModel {

	   

    public String getLabel(int index) {

        return "" + (index + 1);

    }

   

    public Object getOption(int index) {

        return index + 1;

    }

   

    public int getOptionCount() {

        return 31;

    }

   

    public String getValue(int index) {

        return "" + index;

    }

   

    public Object translateValue(String value) {

        return Integer.parseInt(value) + 1;

    }



	@Override
	public boolean isDisabled(int arg0) {
		return false;
	}

} 
